Include compat/kexec.h at the top of xen/common/kexec.c to allow
kexec_get_range_compat() to be compiled outside of #ifndef COMPAT.
This will slightly simplify the explicit creation of other _compat()
functions and is needed for the eventual removal of
xen/common/compat/kexec.c
Note that the inclusion of compat/kexec.h needs to be protected
by #ifdef CONFIG_COMPAT, as the file doesn't exist otherwise.
Signed-off-by: Simon Horman <horms@verge.net.au>
#include <xen/kexec.h>
#include <public/elfnote.h>
#include <xsm/xsm.h>
+#ifdef CONFIG_COMPAT
+#include <compat/kexec.h>
+#endif
#ifndef COMPAT
return ret;
}
-#else /* COMPAT */
-
#ifdef CONFIG_COMPAT
static int kexec_get_range_compat(XEN_GUEST_HANDLE(void) uarg)
{